<include file="common/hearder"/>

<table class="table table-bordered table-hover ">
    <a href="{:U('add')}"><button type="button" class="btn btn-primary btn-lg btn-block">点击添加新合同</button></a>
<thead>
<span class="form-span">薪资管理系统</span>
<a href="{:U('index_hs')}"><span class="form-span">回收站</span></a>

<tr class="info">
    <th>合同编号</th>
    <th>签约人</th>
    <th>生效时间</th>
    <th>失效时间</th>
    <th>类型</th>
    <th>员工编号</th>
    <th>操作</th>
</tr>
</thead>
    <tbody>
    <foreach name="cont" item="con">
    <tr>
        <th>{$con.cont_id}</th>
        <th>{$con.preson}</th>
        <th>{$con.cont_starttime}</th>
        <th>{$con.cont_endtime}</th>
        <th>{$con.cont_type}</th>
        <th>{$con.stf_id}</th>
        <th>
            <a href="{:U('edit',array('id'=>$con['cont_id']))}"><button type="button" class="btn btn-primary btn-sm">查看/编辑</button></a>
            <a href="{:U('del',array('id'=>$con['cont_id']))}"><button type="button" class="btn btn-danger btn-sm">隐藏</button></a>
        </th>
    </tr>
    </foreach><br>
    {$show}<br>
    </tbody>
</table>
<style>
    .current{
        color: #2a799f;
    }
</style>

<include file="common/footer"/>